#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>
#include <stdio.h>

int main(int argc, char *argv[], char *envp[])
{
    printf("Command line arguments:\n");
    for (int i = 0; i < argc; ++ i)
        printf("     argv[%d]: %s\n", i, argv[i]);

    printf("Enviroment variables:\n");
    for (int i = 0; envp[i]; ++ i)
        printf("     envp[%d]: %s\n", i, envp[i]);
    return 0;
}